package com.shigen.springcloud.service.controller;

import com.shigen.springcloud.service.IMessageProvider;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 发送消息的controller
 *
 * @author shigenfu
 * @date 2022/7/2 7:02 下午
 */
@RestController
public class SendMessageController {

  @Resource
  private IMessageProvider messageProvider;

  @GetMapping(value = "send")
  public String sendMessage() {
    return messageProvider.send();
  }

}
